package com.hxl.service.impl;

import com.hxl.AOP;
import com.hxl.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @author xiangjun.deng
 * email 17670934918dxj@sina.com
 * @date 2021/8/8 22:50
 * @desc
 */
@Service
public class UserServiceImpl implements UserService {
    public int save(int a, int b) {
        try {
            System.out.println("userService running..."+a+" "+b);
            int i = 1/0;
            return a+b;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 0;
    }
    @AOP
    public int delete() {

        System.out.println("delete 运行");
        return 1;
    }
}
